<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>租付通-租赁应收账单</title>
    {include file="common/header-sub" /}
    <link rel="stylesheet" href="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/css/bootstrap-datepicker3.min.css"
    />
    <link rel="stylesheet" href="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>css/zft-incomebill.all.css?<?=st?>" />
</head>

<body>
    <div class="g-content">
        <div class="m-head_tab">
            <?php if (isset($dtype)) { ?>
            <?php if(in_array($dtype, [2])) { ?>
            <a href="lease_pay" class="m-head_tab_title noactive ly">应付账单</a>
            <?php }?>
            <?php if(in_array($dtype, [1, 3, 4, 5, 6])) { ?>
            <a href="javascript:;" class="m-head_tab_title fy">应收账单</a>
            <?php }?>
            <?php }?>
        </div>

        <div class="form form-auto" id="filter">
            <div class="form-group f14">
                <div class="form-label">账单月份:</div>
                <div class="form-content">
                    <input type="text" value="" class="input" readonly="" id="beginDate">
                    <!-- <input class="input filter-date" type="text" readonly="" id="beginDate" /> -->
                    <div class="form-comment">~</div>
                    <input class="input filter-date" type="text" readonly="" id="endDate" />
                </div>
            </div>
            <div class="form-group f14">
                <div class="form-label">结算状态:</div>
                <div class="form-content">
                    <select id="state" class="select">
                        <option value="">-请选择-</option>
                        <option value="0">未结算</option>
                        <option value="1">已结算</option>
                    </select>
                </div>
                <div class="form-label form-content">楼宇名称:</div>
                <div class="form-content">
                    <select id="buildingSelect" class="select">
                    <option value="0">全部</option>
                </select>
                </div>
                <div class="form-label form-content">房号:</div>
                <div class="form-content">
                    <input type="text" class="input p25" id="room">
                </div>
            </div>
            <a href="javascript:;" class="btn btn-default" id="btnQuery">查询</a>
        </div>

        <div class="tb-bill-wrap">
            <div class="h40">
                <div class="paginationWrap"></div>
            </div>

            <table class="g-table">
                <thead>
                    <!-- <th><input type="checkbox" id="checkAll"> 全选</th> -->
                    <th>合同编号</th>
                    <th>楼宇名称</th>
                    <th>门牌号</th>
                    <th>出账日期</th>
                    <th>账单周期</th>
                    <th>金额</th>
                    <th>结算状态</th>
                    <th>操作</th>
                </thead>
            </table>
            <div class="u-div_overflow_x">
                <div class="u-div_overflow">
                    <table class="g-table" id="tbBill">
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="h40">
                <div class="paginationWrap"></div>
            </div>
        </div>

        <div id="billDetail">
        </div>



        {include file="common/footer-sub" /}
        <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
        <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/js/bootstrap-datepicker.zh-CN.min.js"></script>
        <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/zft-incomebill.all.js?<?=st?>"></script>
</body>

</html>